package com.purchase.mapper;

import com.purchase.entity.WxUserMember;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@MyBatisRepository
public interface MemberOrderMapper {

    /**
     * 生成订单
     *
     * @param paramMap
     * @return
     */
    int createMemberOrder(Map<String, String> paramMap);

    /**
     * 根据id获取订单
     *
     * @param orderId
     * @return
     */
    Map<String, Object> getMemberOrderById(@Param("orderId") String orderId);

    /**
     * 修改订单状态
     *
     * @return
     */
    int updateOrderStatusById(Map<String, Object> paramMap);

    /**
     * 根据订单状态、物流状态获取订单list
     *
     * @param paramMap
     * @return
     */
    List<Map<String, Object>> getOrderByStatus(Map<String, Object> paramMap);

    WxUserMember getMemberByWxUid(Map<String, Object> paramMap);

}
